package br.unicamp.mc715.transport;

import java.io.Serializable;

/**
 * This interface represents a transport id, used to identify an endpoint
 * of a transport. Any concrete implementation of transport id has to be
 * comparable (consistent with equals) to establish a total order among the
 * endpoints and it must be serializable so it can be send inside messages. <p>
 * 
 * To create a comparable class fully consistent with equals it is necessary
 * to provide implementations for the <code>compareTo</code>,
 * <code>equals</code> and <code>hashCode</code> methods.
 *
 */
public interface TransportId extends Serializable, Comparable<TransportId> {

}
